﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Daycare.Models
{   
    public class Employee
    {
        public Employee(String fName, String lName, String pNumber, String eAddress, bool isActive, String uName, int empId = 0, String middleInit = null)
        {
            employeeId = empId;
            firstName = fName;
            middleInitial = middleInit;
            lastName = lName;
            phoneNumber = pNumber;
            emailAddress = eAddress;
            isEmployed = isActive;
            fullname = String.Format("{0}{1}{2}", firstName, ((String.IsNullOrEmpty(middleInitial) ? " " : String.Format(" {0}. ", middleInitial))), lastName);
            userName = uName;
            employeeImage = new Image();
        }

        public int employeeId { get; set; }
        public String firstName { get; set; }
        public String middleInitial { get; set; }
        public String lastName { get; set; }
        public String phoneNumber { get; set; }
        public String emailAddress { get; set; }
        public bool isEmployed { get; set; }
        public Image employeeImage { get; set; }
        public String fullname { get; set; }
        public String userName { get; set; }
    }
}